package com.hmall.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tb_order_detail")
public class OrderDetail {
    @TableId(type = IdType.AUTO)
    private Long id; //订单编号
    private Long orderId; //订单编号
    private Long itemId; //商品id
    private Integer num; //商品购买数量
    private String name; //商品标题
    private Long price; //商品单价
    private String spec; //商品规格数据
    private String image; //图片
    private Date createTime; //创建时间
    private Date updateTime; //更新时间
}